package ru.ifmo.swing;

import javax.swing.*;

/**
 * @author avhaliullin
 */
public class InfoLabel extends JLabel {
    private final String formatString;

    public InfoLabel(String formatString) {
        this.formatString = formatString;
    }

    public void updateData(Object... data) {
        setText(String.format(formatString, data));
    }
}
